<form id="pagerForm" method="post" action="{:url('Project/lst')}">
    <input type="hidden" name="company_id" value="{$company_id|default=''}"/>
    <input type="hidden" name="pageNum" value="{$pageNum}"/>
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="{:url('Project/lst')}" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <label>检车站：</label>
                    <select name="company_id" class="combox">
                    <option value="0">全部</option>
                    {volist name="company" id="item"}
                    <option value="{$item.id}" {eq name="company_id" value="$item.id"}selected{/eq}>{$item.company_name}</option>
                    {/volist}
                </select>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">搜索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a rel="brandManageAdd" class="add" href="{:url('Project/add')}?is_company=1" target="navTab"  title="检车项目添加"><span>添加</span></a></li>
            <li><a rel="brandManageModify" class="edit" href="{:url('Project/modify')}?id={userId}&is_company=1" target="navTab"  title="检车项目修改"><span>修改</span></a></li>
            <li><a class="delete" href="{:url('Project/doDelete')}?id={userId}&is_company=1" target="ajaxTodo" title="确定要删除吗？"><span>删除</span></a>
            </li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="108.9">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th width="100">检车站名称</th>
            <th width="100">车辆类型</th>
            <th width="100">检车项目</th>
            <th width="100">价格</th>
            <th width="50">商品排序</th>
            <th width="70">当前状态</th>
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr target="userId" rel="{$vo.id}">
            <td>{$vo.id}</td>
            <td>{$vo.company_name}</td>
            <td>{$vo.vehicle_type}</td>
            <td>{$vo.goods_name}</td>
            <td>{$vo.shop_price}</td>
            <td>{$vo.sort}</td>
            <td>
                {switch name="$vo.is_use"}
                {case value="0"}
                <span style="color: red;margin-top: 5px;display: block">禁用</span>
                {/case}
                {case value="1"}
                <span style="color: green;margin-top: 5px;display: block">启用</span>
                {/case}
                {/switch}
            </td>
            <td>
                {switch name="$vo.is_use"}
                {case value="0"}
                <a rel="companyManage" href="{:url('Project/on_off')}?id={$vo.id}&status=1" target="ajaxTodo" title="确定要启用吗？">启用</a>
                {/case}
                {case value="1"}
                <a rel="companyManage" href="{:url('Project/on_off')}?id={$vo.id}&status=0" target="ajaxTodo" title="确定要禁用吗？">禁用</a>
                {/case}
                {/switch}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共{$count}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="{$count}" numPerPage="{$numPerPage}" pageNumShown="10"
             currentPage="{$pageNum}"></div>
    </div>
</div>
